<div id="spnoibat">
    <div class="spnoibat-header">
        <?php
        $sql="SELECT * FROM tbl_sanpham WHERE id = '".$id."'";
        $result=mysql_query($sql);
        $row=mysql_fetch_array($result);
        echo '<p>'.$row['sanpham'].'</p>';
        ?>
    </div>
    <div class="spnoibat-content">

            <div class="chitiet">
                <div class="chitiet-img">
                    <a href="index.php?page=san-pham&list=chi-tiet&id=<?php echo $row['id'];?>">
                        <img src="uploads/<?php echo $row['anhsp']?>" width="330" height="300" class="sp-img">
                    </a>
                </div>
                <div class="chitiet-main">
                    <h3> <?php echo $row['sanpham']?></h3>
                    <table style="width: 100%; padding-left: 5px;">
                        <tr>
                            <td>Giá: </td><td><?php echo $row['gia']?></td>
                        </tr>
                        <tr>
                            <td>Giao hàng:</td><td><?php echo $row['giaohang']?></td>
                        </tr>
                        <tr>
                            <td>Tình trạng: </td><td><?php if($row['tinhtrang']==1){echo 'Còn hàng';}else{echo 'Hết hàng';}?></td>
                        </tr>

                    </table>

                </div>
            </div>
            <div class="thongso">
                <p style="font-size: 16px; font-weight: bold; font-family: Tahoma, Arial, Helvetica">Thông số kỹ thuật:</p>
                <?php echo $row['mota'];?>
            </div>
    </div>
</div>